package com.ruoyi.hospital.mapper;

import com.ruoyi.common.core.domain.hospital.ActPatList;
import com.ruoyi.common.core.domain.hospital.PostResult;
import io.lettuce.core.dynamic.annotation.Param;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;


@Mapper
public interface ActPatListMapper {

//    @Select("select top #{pageSize} * from VIEW_SLYLT_ActPatList where bedNo not in (select top #{pageSize} * #{pageNum} bedNo from VIEW_SLYLT_ActPatList) order by actTime desc")
    public List<ActPatList> getActPatList(ActPatList actPatList);

    @Select("select count(0) from VIEW_SLYLT_ActPatList")
    public Integer getActPatListCount(ActPatList actPatList);

    @Select("select * from hp_actpatlist where id = #{id}")
    public ActPatList findById(String id);

    public int addActPatList(ActPatList actPatList);

    public int updateActPatList(ActPatList actPatList);

    public List<PostResult> selectPostResultList(PostResult postResult);
}
